<template>
  <div>
    <p>
      账号: <input type="text">
    </p>
  </div>
</template>

<script>
import axios from 'axios'
export default {
    name: "about-com",
    created() {
      
    },
    // 使用了keep-alive 会触发两个钩子
    // activated  等同于是  created
    activated() {
      axios.get("https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata").then(res => {
        console.log(res)
      })
    },
    // deactivated  等同于  destroyed
    deactivated() {

    }
}
</script>

<style>

</style>